<include file="public:header"/>
<div class="banner1"></div>
<!-- 会员中心 -->
<div class="usercenter">
    <div class="left">
        <div class="left_t">会员中心</div>
        <div class="left_m">
            <include file="Member:left"/>
        </div>
    </div>
    <div class="right">
        <div class="main_t">安全中心 > 重置密码</div>
        <div class="right_t" style="background:url(__STATIC__/images/use.jpg) no-repeat right bottom; height:300px;">
            <p style="font-size:16px; margin-left:10px;"></p>
            <form action="{:U('member/password')}" id="member-form" method="post">
                <table border="0" cellspacing="0" cellpadding="0" class="login1" style="margin-top:15px; margin-left:10px;">
                    <tr>
                        <td>&nbsp;&nbsp;&nbsp;&nbsp;旧密码：<input type="password" name="password" id="password" class="clogin"/></td>
                    </tr>
                    <tr>
                        <td>&nbsp;&nbsp;&nbsp;&nbsp;新密码：<input type="password" name="newpass" id="newpass" class="clogin"/></td>
                    </tr>
                    <tr>
                        <td>新密确认：<input type="password" name="confirmpass" id="confirmpass" class="clogin"/></td>
                    </tr>
                </table>
                <div class="anniu2"><input type="button" name="button" id="button" value="提 交" /></div>
            </form>
        </div>
    </div>
    <div class="clear"></div>
</div>
<!-- 底部 -->
<script src="__STATIC__/layer/layer.js" type="text/javascript"></script>
<script>
    $(function(){
        $('#button').click(function(){
            $.ajax({
                type:'post',
                url:$('#member-form').attr('action'),
                data: $('#member-form').serialize(),
                dataType:'json',
                success: function(res){
                    if(!res.status)
                    {
                        layer.msg(res.msg, {icon: 2,top:50})
                        return false;
                    }
                    layer.msg(res.msg, {icon: 1,top:10})
                }
            })
        })
    })
</script>
<include file="public:footer"/>